import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;

/** 炮弹 */
@ccclass('ShellProjectile')
export class ShellProjectile extends Component {
    @property({ type: Number })
    rotateSpeed: number = 30; // degrees per second, positive = clockwise
    start() {

    }

    protected update(dt: number): void {
        if (this.rotateSpeed !== 0) {
            // Cocos 3.x uses node.angle (in degrees)
            this.node.angle -= this.rotateSpeed * dt;
        }
    }
}


